<template>
  <div class="justify-center container-row" ref="el">
      <div class="justify-center row-padding">
        <div class="image-text">

          <dic class="rich-text__image">
            <q-img src="https://local-theme-light-demo.myshopify.com/cdn/shop/files/about_us_2.jpg?v=1655103335&width=1080" />
          </dic>

          <dic class="text">
            <div class="card__text">

              <h3 class="h2 rte rich-text__title">
              <slot name="title"></slot>
              </h3>

              <div class="rte text-size--regular">
                <p><slot></slot></p>
              </div>

              <q-btn rounded size="lg" color="black" label="Learn more" style="width: 150px"/>

            </div>
          </dic>
        </div>
      </div>
    </div>
</template>

<script setup lang='ts'>
import {defineProps, defineEmits, defineExpose} from 'vue'

defineProps({

})

const emit = defineEmits([])

defineExpose({})
</script>

<style scoped lang='less'>
.row{
  border-top: 0.0625rem solid #d9d9d9;
  //border-bottom: 0.0625rem solid #d9d9d9;
}
.image-text{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "image text";
}
.rich-text__image {
   grid-area: image;
   display: flex;
   align-items: center;
   height: 100%;
 }
.row-padding{
  padding: 0 40px;
}
.text{
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 60px;
  h3{
    margin-bottom: 21px;
    font-weight: 600;
    font-size: 50px;
  }
  .text-size--regular{
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 21px;
  }
  .button {
    padding: 10px;
    color: #fff;
    cursor: pointer;
    border-radius: 30px; /* 设置按钮圆角 */
    background-color: #000000; /* 设置背景颜色 */
    border: 2px solid #000000;
    width: 30%;
  }
  :deep(.block){
    font-size: 16px;
  }
}
</style>